/*
 * @Autor: dingxiaolin
 * @Date: 2021-06-02 13:12:43
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-07-14 14:20:25
 */
import { App } from 'vue'

import { SvgIcon } from '@/components/svg-icon'
import * as antIcons from '@ant-design/icons-vue'
/**
 * 全局注册自定义组件
 * @param app
 */
export function setupCustomComponents(app: App) {
    app.component(SvgIcon.name, SvgIcon)
    Object.keys(antIcons).forEach(key => {
        app.component(key, antIcons[key])
    })
    app.config.globalProperties.$antIcons = antIcons
}
